<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { jumpLogin } from "./utils/routerInterceptor";
import Storage from "@/utils/storageCache";


	onLaunch(() => {
	if (!Storage.get("userInfo")?.token) {
			return jumpLogin(true)
		}
	  // console.log("App Launch");
	});

	onShow(() => {
	  // console.log("App Show");
	});

	onHide(() => {
	  // console.log("App Hide");
	});
	
	//获取本地版本信息
	plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
		console.log(wgtinfo, 'wgtinfowgtinfowgtinfo')
		uni.setStorage({
			key: 'wgtinfoVersionCode',
			data: wgtinfo
		})
	})

</script>
<style  lang="scss">
	@import './common';
	@import './button';
	
	/*每个页面公共css */
	page {
		font-size: 14px;
	}
	
	input,
	textarea,
	text,
	checkbox-group,
	checkbox,
	button {
		font-size: 14px;
	}

</style>

